package cn.hxzy.teacher.service.impl;


import cn.hxzy.common.domain.Direction;
import cn.hxzy.common.domain.SysSubject;
import cn.hxzy.common.domain.SysSubjectLabel;
import cn.hxzy.common.response.R;
import cn.hxzy.teacher.mapper.SysSubjectLabelMapper;
import cn.hxzy.teacher.service.ISysSubjectLabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author tyhxzy
 * @since 2024-12-14
 */
@Service
public class SysSubjectLabelServiceImpl implements ISysSubjectLabelService {
    @Autowired
    private SysSubjectLabelMapper sysSubjectLabelMapper;

    @Override
    public List<SysSubjectLabel> selectAll() {
        List<SysSubjectLabel> sysSubjectLabels = sysSubjectLabelMapper.selectAllLabel();
        return sysSubjectLabels;
    }

    @Override
    public int deleteByID(Integer id) {
        return sysSubjectLabelMapper.deleteByID(id);
    }

    @Override
    public int updateLabel(SysSubjectLabel sysSubjectLabel) {
        return sysSubjectLabelMapper.updateLabel(sysSubjectLabel);
    }

    @Override
    public int insertLabel(SysSubjectLabel sysSubjectLabel) {
        return sysSubjectLabelMapper.insertLabel(sysSubjectLabel);
    }

    @Override
    public List<SysSubject> selectByID(Integer id) {
        return sysSubjectLabelMapper.selectByID(id);
    }

    @Override
    public List<SysSubjectLabel> selectquanbu() {
        List<SysSubjectLabel> selectquanbu = sysSubjectLabelMapper.selectquanbu();
        return selectquanbu;

    }
}
